﻿<phone:PhoneApplicationPage
    x:Class="Studio77.GuessLyric.Pages.NewUserPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<Style x:Key="ButtonStyle1" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="Red" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation Duration="0" To="7" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="7" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="border1" Width="200" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Height="81" HorizontalAlignment="Left" CornerRadius="30" Background="Black" BorderThickness="7" BorderBrush="Black">
								<Border.RenderTransform>
									<CompositeTransform TranslateY="8"/>
								</Border.RenderTransform>
							</Border>
							<Border x:Name="border" Width="200" VerticalAlignment="Top" Height="81" HorizontalAlignment="Left" CornerRadius="30" Background="#FF3D7A00" BorderThickness="7" BorderBrush="White" RenderTransformOrigin="0.5,0.5">
								<Border.RenderTransform>
									<CompositeTransform/>
								</Border.RenderTransform>
							</Border>
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" Margin="0,0,0,4" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
								<ContentPresenter.RenderTransform>
									<CompositeTransform/>
								</ContentPresenter.RenderTransform>
							</ContentPresenter>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontWeight" Value="Bold"/>
			<Setter Property="FontSize" Value="48"/>
		</Style>
		<Style x:Key="ButtonStyle2" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid x:Name="grid">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="#FF636363" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="7" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="border" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="7" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="border" CornerRadius="30" Background="#FFF0A800" BorderThickness="5" BorderBrush="White" RenderTransformOrigin="0.5,0.5">
								<Border.RenderTransform>
									<CompositeTransform/>
								</Border.RenderTransform>
							</Border>
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" Margin="0,0,0,4" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
								<ContentPresenter.RenderTransform>
									<CompositeTransform/>
								</ContentPresenter.RenderTransform>
							</ContentPresenter>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontWeight" Value="Bold"/>
			<Setter Property="FontSize" Value="48"/>
		</Style>
		<Style x:Key="ButtonStyleReturn" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="#FF5B0303" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="border" BorderBrush="White" BorderThickness="3" Background="#FF035B5B" CornerRadius="10"/>
							<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ButtonStyleBack" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image" Source="/Images/btn_back.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
								<Image.RenderTransform>
									<CompositeTransform/>
								</Image.RenderTransform>
							</Image>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot_Copy" Background="#FF464646" Margin="0,0,0,0
	">
		<Image Margin="1,0,-1,0" Source="/Images/mainpage.png" Stretch="Fill"/>

		<Border BorderThickness="1" HorizontalAlignment="Left" Height="80" Margin="1,0,0,0" VerticalAlignment="Top" Width="479">
			<Grid Margin="0">
				<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="获得新手礼包" VerticalAlignment="Center" FontSize="40" FontWeight="Bold" Foreground="Black" Margin="0,0.398,0,-0.399" RenderTransformOrigin="0.5,0.5">
					<TextBlock.RenderTransform>
						<CompositeTransform TranslateX="3" TranslateY="2"/>
					</TextBlock.RenderTransform>
				</TextBlock>
				<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="获得新手礼包" VerticalAlignment="Center" FontSize="40" FontWeight="Bold" Foreground="White"/>
			</Grid>
		</Border>
		<Button x:Name="btnGet" Click="btnGet_Click" Content="点击领取" Margin="108,564,108,155" Style="{StaticResource ButtonStyle2}" HorizontalAlignment="Center" Foreground="White" Width="264"/>
		<Button x:Name="btnReturn" Content="返回" HorizontalAlignment="Left" Height="50" Margin="10,16,0,0" Style="{StaticResource ButtonStyleBack}" VerticalAlignment="Top" Width="97" Foreground="White" Click="btnReturn_Click"/>
		<Image Margin="175,80,177,592" Source="Coin-01.png" Stretch="Fill" HorizontalAlignment="Left" VerticalAlignment="Top"/>
		<TextBlock HorizontalAlignment="Left" Height="279" Margin="46,244,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="387" FontSize="40" TextAlignment="Center">
			<Run Text="现在去市场给"/>
			<Run Text="疯狂猜歌词"/>
			<Run FontSize="48" Text="五星">
				<Run.Foreground>
					<SolidColorBrush Color="#FFFF5252">
						<SolidColorBrush.RelativeTransform>
							<MatrixTransform Matrix="Identity"/>
						</SolidColorBrush.RelativeTransform>
						<SolidColorBrush.Transform>
							<MatrixTransform Matrix="Identity"/>
						</SolidColorBrush.Transform>
					</SolidColorBrush>
				</Run.Foreground>
			</Run>
			<Run Text="好评，"/>
			<Run Text="可以"/>
			<Run Text="免费获得"/>
			<Run FontSize="48" Text="3000">
				<Run.Foreground>
					<SolidColorBrush Color="#FFFFDC00">
						<SolidColorBrush.RelativeTransform>
							<MatrixTransform Matrix="Identity"/>
						</SolidColorBrush.RelativeTransform>
						<SolidColorBrush.Transform>
							<MatrixTransform Matrix="Identity"/>
						</SolidColorBrush.Transform>
					</SolidColorBrush>
				</Run.Foreground>
			</Run>
			<Run Text="金币！！快来领取吧"/>
		</TextBlock>
		<Image Margin="0,111,0,0" Source="/Images/coin-yuan.png" Stretch="Fill" Width="108" Height="108" HorizontalAlignment="Center" VerticalAlignment="Top"/>

		<!--LayoutRoot 是包含所有页面内容的根网格-->
        
	</Grid>

</phone:PhoneApplicationPage>